var express = require('express');
var router = express.Router();

var dataContrl = require('../controller/user.controller');
/* GET users listing. */

router.post('/data',dataContrl.create);//增加
router.get('/data/:id',dataContrl.get);//查找一个
router.put('/data/:id',dataContrl.update);//修改
router.delete('/data/:id',dataContrl.remove);//单个删除
router.post('/list',dataContrl.list);//分页查询
router.post('/pipei',dataContrl.pipei);//用户名密码匹配
router.post('/deletes',dataContrl.deletes);//删除多个

module.exports = router;
